import request from '@/utils/request'

// 查询告警日志表列表
export function listLog(query) {
  return request({
    url: '/system/log/list',
    method: 'get',
    params: query
  })
}

// 查询告警日志表详细
export function getLog(alertId) {
  return request({
    url: '/system/log/' + alertId,
    method: 'get'
  })
}

// 新增告警日志表
export function addLog(data) {
  return request({
    url: '/system/log',
    method: 'post',
    data: data
  })
}

// 修改告警日志表
export function updateLog(data) {
  return request({
    url: '/system/log',
    method: 'put',
    data: data
  })
}

// 删除告警日志表
export function delLog(alertId) {
  return request({
    url: '/system/log/' + alertId,
    method: 'delete'
  })
}
